From 855446a3b8f892685fc06ab9a31de6f0715fb4c1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 22 Feb 2001 13:56:05 +0000 Subject: [PATCH] (forward_to_next_line_start): When taking the shortcut at the start of the function, check that the \n in it->c is from the iterator's current position. --- src/xdisp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 4782b3b0e07..3da744c9c73 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3517,7 +3517,9 @@ forward_to_next_line_start (it, skipped_p) /* If already on a newline, just consume it to avoid unintended skipping over invisible text below. */ - if (it->what == IT_CHARACTER && it->c == '\n') + if (it->what == IT_CHARACTER + && it->c == '\n' + && CHARPOS (it->position) == IT_CHARPOS (*it)) { set_iterator_to_next (it, 0); it->c = 0; -- 2.30.2